package org.ht.demo.openapi.bean;

import lombok.Data;

import java.util.Date;
/**
 * 鸿途科技
 * @param args
 */
/**
 * 用电数据
 */
@Data
public class IotZCdgLog extends BaseDevice{
    /**
     * 监测时间
     */
    private Date createtime;

    private String sbtype;
    /**
     * 消息类型
     */
    private String msgtype;

    private String linetype;//类型：单相;三相
    /**
     * 消息id
     */
    private String msgid;
    /**
     * (A相电压)状态   0正常；1过压；2欠压
     */
    private Integer uas=0;
    /**
     * A相电压值
     */
    private String ua="0";
    /**
     * (B相电压)状态   00正常；1过压；2欠压
     */
    private Integer ubs=0;
    /**
     * B相电压值
     */
    private String ub="0";
    /**
     * (C相电压)状态  0正常；1过压；2欠压
     */
    private Integer ucs=0;
    /**
     * C相电压值
     */
    private String uc="0";
    /**
     * A相电流状态   0正常；1过流 (新版 1 报警)
     */
    private Integer cas=0;
    /**
     * A相电流值
     */
    private String ca="0";
    /**
     * B相电流状态  0正常；1过流 (新版 1 报警)
     */
    private Integer cbs=0;
    /**
     * B相电流值
     */
    private String cb="0";
    /**
     * C相电流状态  0正常；1过流 (新版 1 报警)
     */
    private Integer ccs=0;
    /**
     * C相电流值
     */
    private String cc="0";
    /**
     * 漏电流状态  0正常；1过流
     */
    private Integer leakvs=0;
    /**
     * 漏电流值
     */
    private String leakv="0";
    /**
     * A相温度状态  0正常；1超温；2其他
     */
    private Integer tas=0;
    /**
     * A相温度值
     */
    private String ta="0";
    /**
     * B相温度状态  0正常；1超温；2其他
     */
    private Integer tbs=0;
    /**
     * B相温度值
     */
    private String tb="0";
    /**
     * C相温度状态  0正常；1超温；2其他
     */
    private Integer tcs=0;
    /**
     * B相温度值
     */
    private String tc="0";
    /**
     * 环境相温度状态  0正常；1超温；2其他
     */
    private Integer tds=0;
    /**
     * 环境相温度值
     */
    private String td="0";
    /**
     * A相有功功率  单位KW
     */

    private String pa ="0";
    /**
     * B相有功功率  单位KW
     */
    private String pb ="0";
    /**
     * C相有功功率  单位KW
     */
    private String pc="0";;
    /**
     * 总有功功率  单位KW
     */
    private String p ="0";
    /**
     *  A相无功功率   单位Kvar
     */
    private String qa="0";
    /**
     * B相无功功率   单位Kvar
     */
    private String qb ="0";
    /**
     * c相无功功率    单位Kvar
     */
    private String qc ="0";
    /**
     * 总无功功率  单位Kvar
     */
    private String q ="0";
    /**
     * 功率因数
     */
    private String pf="0" ;
    /**
     * 频率  单位Hz
     */
    private String f="0";
    /**
     * 有功电能   单位kwh
     */
    private String ept="0";
    /**
     * 无功电能  单位kvarh
     */
    private String eqt ="0";
    /**
     * 额定功率   kVA
     */
    private String rp="0";
    /**
     * 负载率  %
     */
    private String lrate="0";
    /**
     * 本日最高功率  kW
     */
    private String tbest="0";
    /**
     * 本月最高功率  kW
     */
    private String mbest="0";
    /**
     * 信号强度
     */
    private int SI;
    /**
     * 温度 N 状态  0正常；1超温；2其他
     */
    private Integer tNs=0;

    /**
     * 温度 N
     */
    private String tn;

    /**
     *  剩余电流互感器状态
     */
    private String tcrs;
    /**
     *  继电器输出
     */
    private String RO;
    /**
     *  错相
     */
    private String Misphase;
    /**
     *  C 相无信号
     */
    private String NSPC;
    /**
     *  C 相断电
     */
    private String PCPO;
    /**
     *  B 相无信号
     */
    private String NSPB;
    /**
     *  B 相断电
     */
    private String PBPO;
    /**
     *  A 相无信号
     */
    private String NSPA;
    /**
     *  A 相断电
     */
    private String PAPO;
    /**
     * common指令
     */
    private String common;

    /**
     * 总有功电量
     */
    private String totalactiveenergy;

    /**
     * AB 线电压
     */
    private String ABlinevoltage;

    /**
     * BC 线电压
     */
    private String BClinevoltage;

    /**
     *  CA 线电压
     */
    private String CAlinevoltage;

    /**
     * AB 线电流
     */
    private String ABelectriccurrent;

    /**
     * BC 线电流
     */
    private String BCelectriccurrent;

    /**
     *CA 线电流
     */
    private String CAelectriccurrent;


    /**
     * 总有功/无功功率方向
     */
    private String totalactive;
    /**
     * 总无功电量
     */
    private String totalreactivepower ="0";

    /**
     * 第几节点
     */
    private Integer nno;

    private String dptype;//产品类型

    /**
     * 空开状态  0 开闸  1 合闸
     */
    private Integer kks;

    @Override
    public String toString() {
        return "IotZCdgLog{" +
                "createtime=" + createtime +
                ", sbtype='" + sbtype + '\'' +
                ", msgtype='" + msgtype + '\'' +
                ", linetype='" + linetype + '\'' +
                ", msgid='" + msgid + '\'' +
                ", uas=" + uas +
                ", ua='" + ua + '\'' +
                ", ubs=" + ubs +
                ", ub='" + ub + '\'' +
                ", ucs=" + ucs +
                ", uc='" + uc + '\'' +
                ", cas=" + cas +
                ", ca='" + ca + '\'' +
                ", cbs=" + cbs +
                ", cb='" + cb + '\'' +
                ", ccs=" + ccs +
                ", cc='" + cc + '\'' +
                ", leakvs=" + leakvs +
                ", leakv='" + leakv + '\'' +
                ", tas=" + tas +
                ", ta='" + ta + '\'' +
                ", tbs=" + tbs +
                ", tb='" + tb + '\'' +
                ", tcs=" + tcs +
                ", tc='" + tc + '\'' +
                ", tds=" + tds +
                ", td='" + td + '\'' +
                ", pa='" + pa + '\'' +
                ", pb='" + pb + '\'' +
                ", pc='" + pc + '\'' +
                ", p='" + p + '\'' +
                ", qa='" + qa + '\'' +
                ", qb='" + qb + '\'' +
                ", qc='" + qc + '\'' +
                ", q='" + q + '\'' +
                ", pf='" + pf + '\'' +
                ", f='" + f + '\'' +
                ", ept='" + ept + '\'' +
                ", eqt='" + eqt + '\'' +
                ", rp='" + rp + '\'' +
                ", lrate='" + lrate + '\'' +
                ", tbest='" + tbest + '\'' +
                ", mbest='" + mbest + '\'' +
                ", SI=" + SI +
                ", tNs=" + tNs +
                ", tn='" + tn + '\'' +
                ", tcrs='" + tcrs + '\'' +
                ", RO='" + RO + '\'' +
                ", Misphase='" + Misphase + '\'' +
                ", NSPC='" + NSPC + '\'' +
                ", PCPO='" + PCPO + '\'' +
                ", NSPB='" + NSPB + '\'' +
                ", PBPO='" + PBPO + '\'' +
                ", NSPA='" + NSPA + '\'' +
                ", PAPO='" + PAPO + '\'' +
                ", common='" + common + '\'' +
                ", totalactiveenergy='" + totalactiveenergy + '\'' +
                ", ABlinevoltage='" + ABlinevoltage + '\'' +
                ", BClinevoltage='" + BClinevoltage + '\'' +
                ", CAlinevoltage='" + CAlinevoltage + '\'' +
                ", ABelectriccurrent='" + ABelectriccurrent + '\'' +
                ", BCelectriccurrent='" + BCelectriccurrent + '\'' +
                ", CAelectriccurrent='" + CAelectriccurrent + '\'' +
                ", totalactive='" + totalactive + '\'' +
                ", totalreactivepower='" + totalreactivepower + '\'' +
                ", nno=" + nno +
                ", dptype='" + dptype + '\'' +
                ", kks=" + kks +
                '}';
    }
}
